package kr.hkit.powerjava.chapter06.submit2;

import java.util.Scanner;

public class If_work01_teacher {
	public static void main(String[] args) {
		int n = 0;
		Scanner input = new Scanner (System.in);
		int price = 0;
		
		System.out.print("물건의 개수를 입력하시오.");
		n = input.nextInt();
		
		if (n >=100){
			price = (int) (n*100*0.8);
		}else{
			if (n>=20) {
				price = (int) (n*100*0.85);
			}else {
				if (n >=10) {
					price = (int) (n*100*0.9);
				}else {
					price = n * 100;
				}
			}
		}
		System.out.println(n + "개의 가격은 " + price);
	}
}
